//package com.pactera.madp.daemon.quartz.task;
//
//import com.pactera.madp.admin.api.feign.RemoteTenantService;
//import com.pactera.madp.common.core.constant.SecurityConstants;
//import com.pactera.madp.common.core.util.SpringContextHolder;
//import com.pactera.madp.daemon.quartz.constant.enums.MadpQuartzEnum;
//import lombok.SneakyThrows;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
//import java.time.LocalDateTime;
//
///**
// * @author kedongZhang
// * @date 2021/3/11 17:19
// */
//@Slf4j
//@Component("tenantTask")
//public class TenantTask {
//
//    @SneakyThrows
//    public String changeStatus() {
//        RemoteTenantService remoteTenantService = SpringContextHolder.getBean(RemoteTenantService.class);
//        remoteTenantService.changeTenantStatus(SecurityConstants.FROM_IN);
//        log.info("租户变更状态定时任务执行时间:{}", LocalDateTime.now());
//        return MadpQuartzEnum.JOB_LOG_STATUS_SUCCESS.getType();
//    }
//}
